/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Util;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
/**
 *
 * @author Isadora
 */
public class JPA {
    private static EntityManagerFactory entityManagerFactory = 
            Persistence.createEntityManagerFactory("JPA");
    
    public EntityManager getEntityManager(){
        return entityManagerFactory.createEntityManager();
    }
}
